<%-- <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="pub/top_list2.jsp"%>   

<%
 String names = (String) request.getSession().getAttribute("name");

String sql = "select a.zsq,b.goodnum from member a,clientwallet b where a.userid=b.userid and a.userid=?";
String[] params = new String[1];
params[0] =names; 
List<Map<String, Object>> list = db.queryList(sql, params);
%>
<script type="text/javascript">
function tuichu(){		
	window.location.href='<%=basePath%>layoutServlet';
}
</script>
	
	<div class="p-top  clearfloat">
		<a href="personal.html">
			<div class="tu">
				<img src="img/touxiang.png"/>
			</div>
			<a href="login.jsp"><%=names %></a>
			<p class="name"><%=names %></p> 
		</a>
		
		<div class="p-bottom p-bottom1 clearfloat">
			<ul class="clearfloat">
			<%
			
			for (Map<String, Object> m : list) {
				BigDecimal goodnum=new BigDecimal(m.get("goodnum").toString()).setScale(4, BigDecimal.ROUND_HALF_UP);
				BigDecimal zsq=new BigDecimal(m.get("zsq").toString()).setScale(4, BigDecimal.ROUND_HALF_UP);
				
				
		%>
		
				<a href="fx-center1.jsp">
					<li class="box-s">
						<span class="opa6"></span>
						<p class="bt">我的佣金</p>
						<p class="price"><%=goodnum %></p>
					</li>
				</a>
				<a href="#">
					<li class="box-s">
						<span class="opa6"></span>
						<p class="bt">我的积分</p>
						<p class="price"><%=zsq %></p>
					</li>
				</a>
				<a href="#">
					<li class="box-s">
						<span class="opa6"></span>
						<p class="bt">我的足迹</p>
						<p class="price">0</p>
					</li>
				</a>
				<%} %>
			</ul>
		</div>
		
	</div>
	
	
	<div class="contaniner fixed-contb">
		<section class="self">
			<dl>
				<dt>
					<a href="order.jsp">
						<img src="images/self-icon.png"/>
						<b>全部订单</b>
						<span><img src="images/right.png"/></span>
					</a>
				</dt>
				<dd>
						<ul>
							<li>
								<a href="ordertwo.jsp">
									<img src="images/order-icon01.png"/>
									<p>待发货</p>
								</a>
							</li>
							<li>
								<a href="orderthree.jsp">
									<img src="images/order-icon03.png"/>
									<p>待付款</p>
								</a>
							</li>
							<li>
								<a href="orderfour.jsp">
									<img src="images/order-icon02.png"/>
									<p>待收货</p>
								</a>
							</li>
							<li>
								<a href="go-assess.jsp">
									<img src="images/order-icon04.png"/>
									<p>待评价</p>
								</a>
							</li>
						</ul>
				</dd>
			</dl>
			
			<ul class="self-icon">
				<li>
					<a href="datum.jsp">
						<img src="images/self-icon01.png"/>
						<p>个人信息</p>
						<span><img src="images/right.png"/></span>
					</a>
				</li>
				<li>
					<a href="mycollect.jsp">
						<img src="images/self-icon02.png"/>
						<p>我的收藏</p>
						<span><img src="images/right.png"/></span>
					</a>
				</li>
				<li>
					<a href="balance.jsp">
						<img src="images/self-icon012.png"/>
						<p>消费记录</p>
						<span><img src="images/right.png"/></span>
					</a>
				</li>
				<li>
					<a href="addres.jsp">
						<img src="images/self-icon04.png"/>
						<p>地址管理</p>
						<span><img src="images/right.png"/></span>
					</a>
				</li>
			</ul>
			<ul class="self-icon">
				<li>
					<a href="gobuy.jsp">
						<img src="images/self-icon05.png"/>
						<p>我的分销</p>
						<span><img src="images/right.png"/></span>
					</a>
				</li>
				<li>
					<a href="sign.jsp">
						<img src="images/self-icon011.png"/>
						<p>修改密码</p>
						<span><img src="images/right.png"/></span>
					</a>
				</li>
				<li>
					<a href="#">
						<img src="images/self-icon013.png"/>
						<p>账号绑定</p>
						<span><img src="images/right.png"/></span>
					</a>
				</li>
			</ul>
			<!-- <a href="self.jsp"><input type="button" value="退出" onclick="tuichu()"/></a> -->
			<input type="button" value="退出" onclick="tuichu()"/>
		</section>
				
	</div>
	
	<%@ include file="pub/bottom_list42.jsp"%>  --%>